
package org.example.design.designmode.proxy.jdkproxy.blinddate;

import org.example.design.designmode.proxy.jdkproxy.blinddate.JDKProxy;
import org.example.design.designmode.proxy.jdkproxy.blinddate.WangBo;
import org.example.design.designmode.proxy.jdkproxy.blinddate.YuYaoZong;

public class ProxyTest {
    public static void main(String[] args) {

        JDKProxy s= new JDKProxy();
        PeopleService pe = s.getInstance(new WangBo());
        pe.findLove();


        JDKProxy s1= new JDKProxy();
        PeopleService pe1 = s1.getInstance(new YuYaoZong());
        pe1.findLove();


    }
}
